//
//  UserCollectionView.m
//  LoveHealth
//
//  Created by lanou3g on 14-9-23.
//  Copyright (c) 2014年 lanou. All rights reserved.
//

#import "UserCollectionView.h"

@implementation UserCollectionView
- (void)dealloc
{
//    self.segment = nil;
    self.imageView = nil;
    self.collectionLabel = nil;
    self.tableView = nil;
    self.backgroundView = nil;
    [super dealloc];
}
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        [self setupSubviews];
    }
    return self;
}
- (void)setupSubviews
{
    
    _backgroundView = [[UIView alloc] initWithFrame:CGRectMake(0, 64, self.bounds.size.width, self.bounds.size.height - 64 - 49)];
    _backgroundView.backgroundColor = UIColorDDMenuTableViewCell;
    _backgroundView.hidden = YES;
    [self addSubview:_backgroundView];
    
    
    _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(30, 195, 40, 40)];
    _imageView.backgroundColor = UIColorCommon;
    _imageView.image = [UIImage imageNamed:@"wushoucang.png"];
    [_backgroundView addSubview:_imageView];
    
    _collectionLabel = [[UILabel alloc] initWithFrame:CGRectMake(90, 200, 190, 30)];
    _collectionLabel.text = @"还没有收藏哦  去转转吧!";
    _collectionLabel.textAlignment = NSTextAlignmentCenter;
    [_backgroundView addSubview:_collectionLabel];

    
    
    _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 64, self.bounds.size.width, self.bounds.size.height - 64 - 49)];
    [self addSubview:_tableView];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
